package com.biubiux2.dao;

import com.biubiux2.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Lijinbao
 * @since 8/5/2022 11:22 AM
 */
public interface UserMapper {

    String getPasswordByUsername(String username);

    User selectPasswordAndUsername(int userId);

    User getUserByIdAndPassword(@Param("userId") int userId, @Param("password") String password);

    List<User> selectFriendsByUserId(int userId);

    int insertUser(User user);
}
